package com.efa.backend.base.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @Description: 产品信息表
 * @author zhaoxin
 * @date 2014年3月12日 下午7:25:14
 * @version V1.0
 */

@Entity
@Table(name = "PRODUCT_DETAIL")
public class ProductDetail implements Serializable {

	private static final long serialVersionUID = 1L;

	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Id
	@Column(name = "ID", unique = true, nullable = false)
	private long id;
	/**
	 * 产品名称
	 */
	@Column
	private String name;
	/**
	 * 产品名称url
	 */
	@Column
	private String nameUrl;
	/**
	 * 发行机构
	 */
	@Column
	private String issuer;
	/**
	 * 发行机构url
	 */
	@Column
	private String issuerUrl;
	/**
	 * 对接基金
	 */
	@Column(name = "joint_fund")
	private String jointFund;
	/**
	 * 对接基金url
	 */
	@Column(name = "joint_fund_url")
	private String jointFundUrl;
	/**
	 * 万份收益
	 */
	@Column
	private double wfsy;
	/**
	 * 7日年化
	 */
	@Column
	private double qrnh;
	/**
	 * 购买门槛
	 */
	@Column
	private double minbuy;
	/**
	 * 单日取款限制
	 */
	@Column
	private double drqkxe;
	/**
	 * 单日取款限制说明
	 */
	@Column
	private String drqkinfo;
	/**
	 * 变现速度
	 */
	@Column
	private String bxsd;
	/**
	 * 变现速度说明
	 */
	@Column
	private String bxinfo;
	/**
	 * 申购状态
	 */
	@Column
	private String sgstat;
	/**
	 * 规模
	 */
	@Column
	private double jjgm;
	/**
	 * 产品贴吧
	 */
	@Column
	private String tburl;
	/**
	 * 产品购买地址
	 */
	@Column
	private String buyurl;

	/**
	 * 状态 1正常 0删除
	 */
	@JsonIgnore
	@Column
	private String status;

	@OneToMany(mappedBy = "productDetail", cascade = { CascadeType.REMOVE })
	private List<HisProductProfit> hisProductProfitList;

	@JsonIgnore
	@OneToMany(mappedBy = "productDetail", cascade = { CascadeType.REMOVE })
	private List<ProductNews> productNewsList;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIssuer() {
		return issuer;
	}

	public void setIssuer(String issuer) {
		this.issuer = issuer;
	}

	public String getJointFund() {
		return jointFund;
	}

	public void setJointFund(String jointFund) {
		this.jointFund = jointFund;
	}

	public double getWfsy() {
		return wfsy;
	}

	public void setWfsy(double wfsy) {
		this.wfsy = wfsy;
	}

	public double getQrnh() {
		return qrnh;
	}

	public void setQrnh(double qrnh) {
		this.qrnh = qrnh;
	}

	public double getMinbuy() {
		return minbuy;
	}

	public void setMinbuy(double minbuy) {
		this.minbuy = minbuy;
	}

	public double getDrqkxe() {
		return drqkxe;
	}

	public void setDrqkxe(double drqkxe) {
		this.drqkxe = drqkxe;
	}

	public String getBxsd() {
		return bxsd;
	}

	public void setBxsd(String bxsd) {
		this.bxsd = bxsd;
	}

	public String getSgstat() {
		return sgstat;
	}

	public void setSgstat(String sgstat) {
		this.sgstat = sgstat;
	}

	public double getJjgm() {
		return jjgm;
	}

	public void setJjgm(double jjgm) {
		this.jjgm = jjgm;
	}

	public List<HisProductProfit> getHisProductProfitList() {
		return hisProductProfitList;
	}

	public void setHisProductProfitList(
			List<HisProductProfit> hisProductProfitList) {
		this.hisProductProfitList = hisProductProfitList;
	}

	public List<ProductNews> getProductNewsList() {
		return productNewsList;
	}

	public void setProductNewsList(List<ProductNews> productNewsList) {
		this.productNewsList = productNewsList;
	}

	public String getNameUrl() {
		return nameUrl;
	}

	public void setNameUrl(String nameUrl) {
		this.nameUrl = nameUrl;
	}

	public String getIssuerUrl() {
		return issuerUrl;
	}

	public void setIssuerUrl(String issuerUrl) {
		this.issuerUrl = issuerUrl;
	}

	public String getDrqkinfo() {
		return drqkinfo;
	}

	public void setDrqkinfo(String drqkinfo) {
		this.drqkinfo = drqkinfo;
	}

	public String getBxinfo() {
		return bxinfo;
	}

	public void setBxinfo(String bxinfo) {
		this.bxinfo = bxinfo;
	}

	public String getTburl() {
		return tburl;
	}

	public void setTburl(String tburl) {
		this.tburl = tburl;
	}

	public String getBuyurl() {
		return buyurl;
	}

	public void setBuyurl(String buyurl) {
		this.buyurl = buyurl;
	}

	public String getJointFundUrl() {
		return jointFundUrl;
	}

	public void setJointFundUrl(String jointFundUrl) {
		this.jointFundUrl = jointFundUrl;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
